package com.yeren.spring.tarena.dao;
import java.util.List;

import com.yeren.spring.tarena.annotation.MyBatisRepository;
import com.yeren.spring.tarena.entity.Condition;
import com.yeren.spring.tarena.entity.Emp;



/**
 * liubiao
 */
@MyBatisRepository
public interface EmpDao {
	List<Emp> findAll();
	List<Emp> findByDept(Condition cond);
	List<Emp> findBySalary(Condition cond);
	List<Emp> findByDeptAndSalary(Condition cond);
	void update(Emp emp);
	
	List<Emp> findByDeptAndSalary2(Condition cond);
	void update2(Emp emp);
	List<Emp> findByIds (Condition cond);
	
	void save(Emp emp);
	Emp findById(int id);
	Emp findById2(int id);
	void delete(int id);
	
}
